<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>显示数据三种方案</title>
  <style>
    [v-cloak] {
      display: none;
    }
    body {
      padding: 40px 100px;
    }

    .search-box {
      margin-bottom:  30px;
    }
    .search-box:after {
      content: '';
      display: block;
      clear: both;
    }
    .search-box select {
      float: left;
      border: 1px solid #ccc;
      height: 30px;
      box-sizing: border-box;
      outline: medium;
    }
    .search-box input {
      float: left;
      margin-left: -1px;
      padding: 0 10px;
      width: 200px;
      height: 30px;
      border: 1px solid #ccc;
      box-sizing: border-box;
      outline: medium;
    }
    .search-box .btn {
      float: left;
      margin-left: -1px;
      width: 80px;
      height: 30px;
      border: 1px solid #ccc;
      cursor: pointer;
      box-sizing: border-box;
      text-align: center;
      line-height: 28px;
      text-decoration: none;
      color: #333;
    }
    .search-box .btn:hover {
      color: #fff;
      background: #01A3D9;
    }

  </style>
</head>
<body>

  <div id="app" v-cloak>
    <div class="search-box">
      <select v-model="link">
        <option value="http://www.baidu.com/s?wd=">百度</option>
        <option value="https://cn.bing.com/search?q=">必应</option>
        <option value="https://www.so.com/s?q=">360</option>
      </select>
      <input v-model="word" type="text"/>
      <a class="btn" :href="link + word" target="_blank">搜索</a>
    </div>
  </div>
  
  <script src="../lib/vue.3.4.js"></script>
  <script>
    const app = Vue.createApp({
      data () {
        return {
          word: '',
          link: 'http://www.baidu.com/s?wd='
        }
      }
    }).mount('#app');
  </script>
</body> 
</html>